//
//  Rect.h
//  Morpheus2D
//
//  Created by Vivek Seetharaman on 6/11/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#ifndef Morpheus2D_Rect_h
#define Morpheus2D_Rect_h

namespace morpheus2d
{
namespace core
{
    template <class T> 
    class Rect
    {
    public:
        
        // Constructors
        Rect() : width(0), height(0)
        {
        }
        
        Rect( const T& w, const T& h )
        {
            width  = w;
            height = h;
        }
        
        Rect( const Rect<T>& otherRect )
        {
            width  = otherRect.width;
            height = otherRect.height;
        }
        
        // Operators
        template <class S>
        Rect< T >& operator=( const Rect< S >& otherRect )
        {
            width  = (T) otherRect.width;
            height = (T) otherRect.height;
        }
        
        bool operator==( const Rect< T >& otherRect ) const 
        {
            
        }
        
        
        
        T width;
        T height;
        
    };
}
}

#endif
